package com.penghaonan.appframework.utils.monitor;

public interface IMonitor<T> {
    T getValue();
    void addListener(MonitorListener<T> listener);
    void removeListener(MonitorListener<T> listener);
    void release();

    interface MonitorListener<T> {
        void onStatusChanged(IMonitor<T> monitor, T value);
    }
}
